﻿using Furion.DependencyInjection;
using Furion.DynamicApiController;
using Microsoft.AspNetCore.Mvc;
using Models.Mailbox;
using Web.Service;


namespace Web.Controllers
{
    [ApiDescriptionSettings(groups: "邮箱配置", Name = "邮箱配置", Tag = "邮箱信息", Order = 200)]
    public class MailboxConfigureController:IDynamicApiController//, ITransient
    {
        private MailboxConfigureService service = new MailboxConfigureService();


        /// <summary>
        /// 添加邮箱配置
        /// </summary>
        /// <param name="mailbox"></param>
        /// <returns></returns>
        [HttpPost("/Mailbox/AddMailboxConfig")]
        public  bool  AddMailboxConfig([FromBody] MailboxConfigure mailbox) {

           int count = service.AddMailboxConfig(mailbox);
            return false;
        }
    }
}
